package com.second.app.thread.reentrant.conditionerror;

/**
 * @author gyz
 * @date 2021/2/1 15:08
 */
public class Main {
    public static void main(String[] args) {
        try {
            MyService myService = new MyService();
            Thread threadA = new Thread(myService);
            threadA.setName("线程A");
            threadA.start();
            Thread.sleep(200);
            Thread threadB = new Thread(myService);
            threadB.setName("线程B");
            threadB.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
